package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author cpf
 *
 */
@ApiModel(value = "Part对象", description = "")
public class Part implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("零件图片")
    private String partImg;

    @ApiModelProperty("零件名称")
    private String partName;

    @ApiModelProperty("单位")
    private String partUnit;

    @ApiModelProperty("零件定价")
    private BigDecimal partPrice;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("创建日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    public Integer getId() {
       return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getPartImg() {
       return partImg;
    }


    public void setPartImg(String partImg) {
        this.partImg = partImg;
    }


    public String getPartName() {
       return partName;
    }


    public void setPartName(String partName) {
        this.partName = partName;
    }


    public String getPartUnit() {
       return partUnit;
    }


    public void setPartUnit(String partUnit) {
        this.partUnit = partUnit;
    }


    public BigDecimal getPartPrice() {
       return partPrice;
    }


    public void setPartPrice(BigDecimal partPrice) {
        this.partPrice = partPrice;
    }


    public String getStatus() {
       return status;
    }


    public void setStatus(String status) {
        this.status = status;
    }


    public Date getCreateTime() {
       return createTime;
    }


    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }


    public Date getUpdateTime() {
       return updateTime;
    }


    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }



    @Override
    public String toString() {
        return "Part{" +
        "id=" + id +
        ", partImg=" + partImg +
        ", partName=" + partName +
        ", partUnit=" + partUnit +
        ", partPrice=" + partPrice +
        ", status=" + status +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
